package graph

import (
	"context"
	"gql3/constants"
	"gql3/graph/model"
)

//go:generate go run github.com/99designs/gqlgen

// This file will not be regenerated automatically.
//
// It serves as dependency injection for your app, add any dependencies you require here.

type Resolver struct{}

func (Resolver) For(ctx context.Context) *model.Loaders {
	return ctx.Value(constants.LoadersKey).(*model.Loaders)
}
